package cn.wolfcode.qo;

import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class QueryObject {
    //封装查第几页
    private int currentPage = 1;
    //每页多少条
    private int pageSize = 5;
    //关键字查询
    private String keyword;

    public int getStart(){
        return (currentPage - 1)* pageSize;
    }
}
